package demo02;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-04-08
 * Time: 20:06
 */
public  class Student implements Person{

    String name;
    int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    @Override
    public void run() {
        System.out.println("学生在跑");
    }

    @Override
    public void eat() {
        System.out.println("学生在吃饭");
    }
}

